import fetch from "@/utils/request"
const BASE_URL = "/bl-cate";

export const queryAllCategory = (data)=>{
    return fetch({
        method:"post",
        url:BASE_URL + "/queryAll",
        data
    })
}


export const modifyCateById = (data)=>{
    return fetch({
        method:"post",
        url:BASE_URL + "/modify",
        data,
    })
}


export const addCateById = (data)=>{
    return fetch({
        method:"post",
        url:BASE_URL + "/add",
        data,
    })
}


export const queryCateInfo = (id)=>{
    return fetch({
        method:"get",
        url:BASE_URL+`/queryCateInfo?id=${id}`,
    })
}

export const deleteCate = (data)=>{
    return fetch({
        method:"post",
        data,
        url:BASE_URL + "/delete",
    })
}

export const deleteCates = (data)=>{
    return fetch({
        method:"post",
        data,
        url:BASE_URL + "/deleteSelect",
    })
}